import request from '@/config/axios'

export type TONGUEBASICVO = {
  id?: number | undefined
  pluginSwitch: number
  purchaseConfig: string
  sendSwitch:number
  memberLevelConfig:string
  newUserTimes:number
  appletUrl: string
  h5Url: string
  privacyPolicySwitch: number
  privacyPolicyContent:string
  buyPolicySwitch: number
  buyPolicyContent:string
  tongueIntro:string
}

export const TongueBasicApi = {
  // 保存舌诊基础设置
  setTongueBasice: async (data: TONGUEBASICVO) => {
    return request.post({ url: '/application/tongue-basic/save', data })
  },
  // 获得舌诊基础设置
  getTongueBasice: async() => {
    return request.get({ url: '/application/tongue-basic/get' })
  }
}